<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class UpdateColumnReccatIdRelist0stable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('reclist0s', function (Blueprint $table) {
            if (Schema::hasColumn('reclist0s', 'column_type_id')) {
                $table->dropColumn('column_type_id');
            }
             $table->integer('reccat_id')->default(0)->nullable()->unsigned()->comment('推荐类型定义ID');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
